package com.yanfan.data.tdengine.service.impl;


import com.yanfan.data.domain.SnmpResponse;
import com.yanfan.data.mapper.SnmpResponseMapper;
import com.yanfan.data.tdengine.service.TDSnmpResponseService;

import java.util.List;


public class MySqlSnmpResponseServiceImpl implements TDSnmpResponseService {

    private final SnmpResponseMapper snmpResponseMapper;

    public MySqlSnmpResponseServiceImpl(SnmpResponseMapper snmpResponseMapper) {
        this.snmpResponseMapper = snmpResponseMapper;
    }


    @Override
    public int insertSnmpResponse(SnmpResponse snmpResponse) {
        return snmpResponseMapper.insertSnmpResponse(snmpResponse);
    }

    @Override
    public List<SnmpResponse> TDSelect(SnmpResponse snmpResponse) {
        return snmpResponseMapper.selectSnmpResponseList(snmpResponse);
    }

    @Override
    public SnmpResponse selectSnmpResponseById(Long id) {
        return snmpResponseMapper.selectSnmpResponseById(id);
    }
}
